package com.llt.springcloud.service;

import com.llt.springcloud.pojo.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@FeignClient(value = "SPRINGCLOUD-PROVIDER-DEPT")
@Controller
public interface DeptClientSerevice {
     @GetMapping("/dept/getById/{id}")
     Dept queryById(@PathVariable("id") Long id);
     @GetMapping("/dept/list")
     List<Dept> queryAll();
     @PostMapping("/dept/add")
     boolean addDept(Dept dept);
}
